﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Azylee.Core.WindowsUtils.HookUtils
{
    class KeyboardHookHelper
    {
        //KeyboardHook k_hook;
        //public hook()
        //{
        //    InitializeComponent();
        //    k_hook = new KeyboardHook();
        //    //k_hook.KeyDownEvent += new System.Windows.Forms.KeyEventHandler(hook_KeyDown);//钩住键按下 
        //    k_hook.KeyPressEvent += K_hook_KeyPressEvent;
        //    k_hook.Start();//安装键盘钩子
        //}

        //private void K_hook_KeyPressEvent(object sender, KeyPressEventArgs e)
        //{
        //    //tb1.Text += e.KeyChar;
        //    int i = (int)e.KeyChar;
        //    System.Windows.Forms.MessageBox.Show(i.ToString());
        //}

        //private void hook_KeyDown(object sender, KeyEventArgs e)
        //{
        //    tb1.Text += (char)e.KeyData;


        //    //判断按下的键（Alt + A） 
        //    //if (e.KeyValue == (int)Keys.A && (int)System.Windows.Forms.Control.ModifierKeys == (int)Keys.Alt)
        //    //{
        //    //    System.Windows.Forms.MessageBox.Show("ddd");
        //    //}
        //}
    }
}
